<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>汇报人员</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<script language="javascript">
function phoneNumCheck(){
	var phoneNum = $("#PR_PHONE").val();
	if("" != phoneNum && null != phoneNum){
		if(!(/^1[34578]\d{9}$/.test(phoneNum))){
			writeErrorMsg("手机号码格式错误！");
	        return; 
	    }
	}
	doSubmit({actionType:'save',checkUnique:'true'});
}
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<div id="__ParamBar__" style="float: right;">&nbsp;</div>
<div id="__ToolBar__">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="enableSave()" ><input value="&nbsp;" type="button" class="editImgBtn" id="modifyImgBtn" title="编辑" />编辑</td>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="phoneNumCheck();"><input value="&nbsp;" type="button" class="saveImgBtn" id="saveImgBtn" title="保存" />保存</td>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="goToBack();"><input value="&nbsp;" type="button" class="backImgBtn" title="返回" />返回</td>
</tr>
</table>
</div>
<table class="detailTable" cellspacing="0" cellpadding="0">
<tr>
	<th width="100" nowrap>姓名</th>
	<td><input id="PR_NAME" label="姓名" name="PR_NAME" type="text" value="<%=pageBean.inputValue("PR_NAME")%>" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>性别</th>
	<td><select id="PR_SEX" label="性别" name="PR_SEX" class="select"><%=pageBean.selectValue("PR_SEX")%></select>
</td>
</tr>
<tr>
	<th width="100" nowrap>岗位</th>
	<td><input id="PR_POST" label="岗位" name="PR_POST" type="text" value="<%=pageBean.inputValue("PR_POST")%>" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>邮箱</th>
	<td><input id="PR_MAIL" label="邮箱" name="PR_MAIL" type="text" value="<%=pageBean.inputValue("PR_MAIL")%>" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>电话</th>
	<td><input id="PR_PHONE" label="电话" name="PR_PHONE" type="text" value="<%=pageBean.inputValue("PR_PHONE")%>" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>排序</th>
	<td><input id="PR_SORT" label="排序" name="PR_SORT" type="text" value="<%=pageBean.inputValue("PR_SORT")%>" size="24" class="text" />
</td>
</tr>
</table>
<input type="hidden" name="actionType" id="actionType" value=""/>
<input type="hidden" name="operaType" id="operaType" value="<%=pageBean.getOperaType()%>"/>
<input type="hidden" id="PR_ID" name="PR_ID" value="<%=pageBean.inputValue("PR_ID")%>" />
<input type="hidden" id="PI_ID" name="PI_ID" value="<%=pageBean.inputValue("PI_ID")%>" />
</form>
<script language="javascript">
requiredValidator.add("PR_NAME");
requiredValidator.add("PR_MAIL");
requiredValidator.add("PR_SORT");
emailValidator.add("PR_MAIL");
intValidator.add("PR_SORT");
initDetailOpertionImage();
</script>
</body>
</html>
<%@include file="/jsp/inc/scripts.inc.jsp"%>
